package com.GroupSix.controller;

import com.GroupSix.service.ClassScoreService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/classScore")
public class ClassScoreController {
    @Autowired
    private ClassScoreService classScoreService;

    //计算班级平均分
    @PostMapping("average")
    public String average() {
        return classScoreService.average();
    }
}
